<!DOCTYPE HTML PUBLIC "-//ORA//DTD CD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>[Chapter 17] EventListener</TITLE>
<META NAME="author" CONTENT="Mark Grand and Jonathan Knudsen">
<META NAME="date" CONTENT="Fri Aug  8 17:42:18 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java">
<META NAME="title" CONTENT="Java Fundamental Classes Reference">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java Fundamental Classes Reference" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch17_06.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 17<br>The java.util Package</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch17_08.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=refnamediv>
<H1>EventListener</H1>

<H2>Name</H2>

EventListener

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.44">Synopsis</A></h2>

<DL CLASS=variablelist>
<DT CLASS=varlistentry>Interface Name:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.util.EventListener</tt>

<p>
<DT CLASS=varlistentry>Super-interfaces:<br>
<DD>

<P CLASS=para>
None

<p>
<DT CLASS=varlistentry>Immediate Sub-interfaces:<br>
<DD>

<P CLASS=para>
<tt CLASS=literal>java.awt.event.ActionListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.AdjustmentListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.ComponentListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.ContainerListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.FocusListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.ItemListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.KeyListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.MouseListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.MouseMotionListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.TextListener</tt>,

<P CLASS=para>
<tt CLASS=literal>java.awt.event.WindowListener</tt>

<p>
<DT CLASS=varlistentry>Implemented by:<br>
<DD>

<P CLASS=para>
None

<p>
<DT CLASS=varlistentry>Availability:<br>
<DD>

<P CLASS=para>
New as of JDK 1.1 </DL>
</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.45">Description</A></h2>

<P CLASS=para>
In order for instances of a class to receive events, the class
must implement the <tt CLASS=literal>EventListener</tt> interface. 
It is a semantic interface, meaning that it declares no methods. 
Classes do not normally implement the <tt CLASS=literal>EventListener</tt> 
interface directly, but instead implement an interface that 
extends <tt CLASS=literal>EventListener</tt>.

<P CLASS=para>
Prior to Java 1.1, events could only be delivered to AWT components.  
Java 1.1 introduces a new event model that allows events to be 
delivered to any object that implements a listener interface and 
registers to receive events from a particular source.

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.46">Interface Declaration</A></h2>

<DIV CLASS=screen>
<P>
<PRE>
public abstract interface java.util.EventListener {
}
</PRE>
</DIV>

</DIV>

<DIV CLASS=refsect1>
<h2 CLASS=refsect1><A CLASS="TITLE" NAME="ch17-REFSECT1-AUTOID.47">See Also</A></h2>

<P CLASS=para>
<tt CLASS=literal>ActionListener</tt>, 
<tt CLASS=literal>AdjustmentListener</tt>, 
<tt CLASS=literal>ComponentListener</tt>, 
<tt CLASS=literal>ContainerListener</tt>, 
<tt CLASS=literal>FocusListener</tt>, 
<tt CLASS=literal>ItemListener</tt>, 
<tt CLASS=literal>KeyListener</tt>, 
<tt CLASS=literal>MouseListener</tt>, 
<tt CLASS=literal>MouseMotionListener</tt>, 
<tt CLASS=literal>TextListener</tt>, 
<tt CLASS=literal>WindowListener</tt> 
</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch17_06.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch17_08.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>Enumeration</td>
<td width=171 align=center valign=top><a href="index/idx_0.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>EventObject</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
